SearchContext.this

Creates a new search context, associated with @buffer, and customized with @settings.

If @settings is %NULL, a new [class@SearchSettings] object will be created, that you can retrieve with [method@SearchContext.get_settings].

  1. this(GtkSourceSearchContext* gtkSourceSearchContext, bool ownedRef)
  2. this(Buffer buffer, SearchSettings settings)
    class SearchContext

Parameters

buffer Buffer

a #GtkSourceBuffer.

settings SearchSettings

a #GtkSourceSearchSettings, or %NULL.

Return Value

a new search context.

Throws

ConstructionException GTK+ fails to create the object.

Meta